Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WASM Build #59

Merged
merged 7 commits into from
Feb 17, 2025
Merged

WASM Build #59

merged 7 commits into from
Feb 17, 2025

Conversation

bitner
Copy link
Contributor

@bitner bitner commented Feb 12, 2025

@bitner bitner requested a review from gadomski February 12, 2025 22:51
Copy link
Collaborator

@gadomski gadomski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh, that's hilarious how short wasm/src/lib.rs is ✨

Comment on lines +23 to +24
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed? I thought the default runners come w/ rust...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need to install them manually

Comment on lines +3 to +4
`export RUSTFLAGS='--cfg getrandom_backend="wasm_js'`
`wasm-pack build`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`export RUSTFLAGS='--cfg getrandom_backend="wasm_js'`
`wasm-pack build`
```shell
scripts/buildwasm
```


set -e

wasm-pack build --no-typescript --target web --out-dir ../docs/pkg wasm
Copy link
Member

@kylebarron kylebarron Feb 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no typescript 🥲 (But actually not really important)

Comment on lines +23 to +24
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need to install them manually

@bitner bitner merged commit 89169f6 into main Feb 17, 2025
1 check passed
@bitner bitner deleted the wasm2 branch February 17, 2025 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch to jsonschema Expose to WASM
3 participants